	<layout name="newlayout" />

		 <script type="text/javascript" charset="utf-8" src="__JS__ueditor.config.js"></script>
								    <script type="text/javascript" charset="utf-8" src="__JS__ueditor.all.min.js"> </script>
								    <script type="text/javascript" charset="utf-8" src="__JS__lang/zh-cn/zh-cn.js"></script>
	<STYLE>
   .clear {  clear: both;   }
	.input_class{width:15px;height:10px;}
.num{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;}
.current{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;background: #469400 url('{__IMG__}bg-button-green.gif') top left repeat-x !important;border-color: #459300 !important;color: #fff !important;}
	</STYLE>
	<div id="main-content"> 
			<div class="content-box" style="margin:0 auto;width:1000px;">
				<div class="content-box-header">
					<h3>修改搜索模型
					</h3>
					<div class="clear"></div>
				</div> <!-- End .content-box-header -->
				<div class="content-box-content">
					<div>
						<form action="/admin/search/lists" method="post" id="article_add" >
							<input type="hidden"  name="id" value="{$data['id']}" />
							<input type="hidden" name="thumb"  value="{$data['thumb']}"  id="thumb"/>
							<fieldset> 
								<div>
								<label>模型：</label>   
								<style>
								#position {overflow:hidden;}
								#position li {float:left;}
								</style> 
									<ul id="position">
								<?php
							       foreach ($list as $r){?>
							       			<li> <input type="checkbox"  <?php if(!empty($r["model_id"])){?>checked="checked"<?php }?> value="<?php echo $r['id']?>" name="model[]"/> <?php echo $r['name']?></li>
							       <?php }?>
									</ul>
								</div>
								<p>
									<input class="button" type="button" value="保存"  id="tijiao" onclick="model_save();" />
								</p>
							</fieldset>
							<div class="clear"></div><!-- End .clear -->
						</form>
					</div> <!-- End #tab2 -->      
				</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->
		</div> <!-- End #main-content -->
<script>
function model_save(){
 	$("#article_add").submit();
}

</script>